<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/7/7
 * Time: 11:31
 */
global $_W,$_GPC;
$table = 'imeepos_runner3_setting';
$item = M('setting')->getValue('share');
if($_W['ispost']){
    $data = array();
    $data['uniacid'] = $_W['uniacid'];
    $data['code'] = 'share';
    $data['value'] = iserializer($_POST);
    if(empty($setting)){
        pdo_insert($table,$data);
    }else{
        pdo_update($table,$data,array('id'=>$setting['id']));
    }
    message('提交成功',referer(),success);
}
include $this->template('share_set');